package com.wcs.exam.controller.admin.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * Admin-考试-正式考试-报名/开考延期-请求参数
 * </p>
 *
 * @author wcs
 * @since 2024-07-10
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-考试-正式考试-报名/开考延期-请求参数")
public class AdminExamRegistrationPostponementReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键ID不能为空")
    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "报名结束时间(格式:yyyy-MM-dd HH:mm:ss)")
    private LocalDateTime registrationEndTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "考试开始时间(格式:yyyy-MM-dd HH:mm:ss)")
    private LocalDateTime examStartTime;
}
